<!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title><?=$_SESSION['sys']['title']?>  -  登陆</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <meta name="format-detection" content="telephone=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="alternate icon" type="image/png" href="<?=base_url('assets/i/favicon.png')?>">
  <link rel="stylesheet" href="<?=base_url('assets/css/amazeui.min.css')?>"/>

  <!-- 数据导入 -->
  <script type="text/javascript" src="http://libs.baidu.com/jquery/1.8.3/jquery.min.js"></script>
  <script type="text/javascript" src="http://js.zbzmall.com/public/lib/jqusey.form.js"></script>
  <script type="text/javascript" src="http://js.zbzmall.com/public/lib/layer/layer.js"></script>

  <style>
    .header {
      text-align: center;
    }
    .header h1 {
      font-size: 200%;
      color: #333;
      margin-top: 30px;
    }
    .header p {
      font-size: 14px;
    }
  </style>
</head>
<body>
<div class="header">
  <hr />
</div>
<div class="am-g">
  <div class="am-u-lg-6 am-u-md-8 am-u-sm-centered">
    <h3><?=$_SESSION['sys']['title']?> - 登录</h3>
    <hr>
    <br>

    <form method="post" action="<?=site_url('home/login_env')?>" class="am-form" id="login_form">
      <label for="email">邮箱:</label>
      <input type="email" name="email" id="email" value="">
      <br>
      <label for="password">密码:</label>
      <input type="password" name="password" id="password" value="">
      <br>
      <label for="remember-me">
        <input id="remember-me" type="checkbox">
        记住密码
      </label>
      <br />
      <div class="am-cf">
        <input type="submit" name="" value="登 录" class="am-btn am-btn-primary am-btn-sm am-fl">
        <input type="submit" name="" value="忘记密码 ^_^? " class="am-btn am-btn-default am-btn-sm am-fr">
      </div>
    </form>
    <hr>
    <p>© 2014 版权所有.  <a href="<?=site_url()?>" target="_blank"><?=$_SESSION['sys']['company']?></a></p>
  </div>
</div>
<script type="text/javascript">
  $('#login_form').submit(function() {
        var index = layer.load(2);
        $(this).ajaxSubmit(function(data){
            layer.close(index);
            if(data == 1){
                location.href="";
            }else{
                layer.alert(data,{
                    icon:2,
                });
            }
        })
        return false;
    })
</script>
</body>
</html>